package com.binance.gateway.app.constant;

import java.util.Arrays;
import java.util.List;

public final class Constant {

    public static final String X_AMZN_TRACE_ID = "x-amzn-trace-id";
    public static final String HEADER_UI_REQUEST_TRACE = "X-UI-REQUEST-TRACE";
    public static final String SESSION_INFO_KEY = "SESSION_INFO_KEY";
    public static final String HEADER_USER_ID = "X-USER-ID";
    public static final String HEADER_USER_EMAIL = "X-USER-EMAIL";
    public static final String HEADER_TOKEN = "x-token";
    public static final String HEADER_CLIENT_TYPE = "clienttype";
    public static final String HEADER_LANG = "lang";
    public static final String HEADER_BASE_URL = "base-url";

    public static final String TOKEN_SECOND_VERIFY = "verify";

    public static final String COOKIE_TOKEN = "p20t";
    public static final String COOKIE_MIX_TOKEN1 = "d1og";
    public static final String COOKIE_MIX_TOKEN2 = "r2o1";
    public static final String COOKIE_MIX_TOKEN3 = "f30l";
    public static final String COOKIE_SERIAL_NO = "s9r1";
    public static final String COOKIE_CSRFTOKEN = "CSRFToken";
    public static final String COOKIE_NEW_CSRFTOKEN = "cr00";
    // authcenter 真正的值
    public static final String AUTHCENTER_TOKEN = "token";
    public static final String AUTHCENTER_SERIAL_NO = "serialNo";
    // 退出时需要清理的cookie
    public static final List<String> CLEAR_COOKIE_LIST = Arrays.asList(COOKIE_TOKEN, COOKIE_MIX_TOKEN1,
            COOKIE_MIX_TOKEN2, COOKIE_MIX_TOKEN3, COOKIE_SERIAL_NO, COOKIE_NEW_CSRFTOKEN);
    // 退出时需要清理的PNK cookie
    public static final List<String> CLEAR_OLD_COOKIE_LIST = Arrays.asList("JSESSIONID", "CSRFToken");

    public static final String LOCAL_IP = "local-ip";
    public static final String SESSION_SECOND_VERIFY = "isVerify";

    public static final String LAST_LOGIN_TIME = "lastLoginTime";
    public static final String SESSION_USERID = "userId";
    public static final String SESSION_USER_EMAIL = "email";

    public static final String MSG_KEY_USER_OPERATION = "gw_pnk_web_user_operation";

    public static final String SUCCESS = "success";
    public static final String SUCCESS_UPPER_CASE = "SUCCESS";
    public static final String FALSE = "false";
    public static final String MSG = "msg";
    public static final String RATE = "rate";
    public static final String PRICE = "price";
    public static final String AMOUNT = "amount";
    public static final String TOTAL_TRANSFER_BTC = "totalTransferBtc";
    public static final String USER_ID = "userId";
    public static final String COOKIE_GT_ID = "gtId";
    public static final String LANG = "lang";
    public static final String USER_AGENT = "User-Agent";

    public static final String EMAIL_REGEX = "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";

    public static final String AUTH_FILTER_RUN = "AUTH_FILTER_RUN";
    public static final int TOKEN_SHOW_LEN = 20;
}
